#!/usr/bin/env python3
# -*- coding:utf-8 -*-

# 绘制多个同心圆

import turtle


def main():
    printer = turtle.Pen()
    my_colors = ("red", "green", "yellow", "black")
    printer.width(4)
    printer.speed(1)
    for i in range(10):  # 0 1 2 3 4
        printer.penup()
        printer.goto(0, -i * 10)  # 0, -100,-200,-300,-400
        printer.pendown()
        printer.color(my_colors[i % len(my_colors)])
        printer.circle(15 + i * 10)  # 100,200,300, 400,, 500
    turtle.done()  # 程序执行完，窗口仍然在


if __name__ == "__main__":
    main()
